To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
Date: 6/22/96
Subject: Bug in ODFContainer Time: 5:05 PM
There is bug in ODFContainer that causes the selection to be drawn wrong. When ODFContainer is the root part and its window is deactivated, it correctly hides the selection handles. However, if it gets a draw event while it is in the background (e.g. if it is hidden by a Finder window and that window is closed), it will draw the selection handles even though the window is not active. That wouldn't be so bad, except that when its window is activated again, the selection draws backwards -- i.e. handles are drawn when the embedded part is not selected and not drawn when it is selected. It gets out of sync because CContainerView::Draw does not check to see if the window is active before it draws the selection handles. The following change to CContainerView::Draw appears to fix the problem:
change this:
if (GetFrame(ev)->HasSelectionFocus(ev) && odFacet->GetCanvas(ev)->IsDynamic(ev))